<h2>Edit Triple</h2>

<form class="vertical" method="post" action="/store/edit">
<ul>
	<li>
		<label for="s">Subject:</label>
		<input id="s" name="s" type="text" size="100" maxlength="200" value="<?php echo $this->s; ?>"/>
	</li>
	<li>
		<label for="p">Predicate:</label>
		<input id="p" name="p" type="text" size="100" maxlength="200" value="<?php echo $this->p; ?>"/>
	</li>
	<li>
		<label for="o">Object:</label>
		<input id="o" name="o" type="text" size="100" maxlength="200" value="<?php echo $this->o; ?>"/>
	</li>
	<li>
		<label>Type:</label>
		<select id="type" name="type">
			<option value="literal" <?php if ($this->type == 'literal') { echo 'selected="selected"'; } ?>>literal</option>
			<option value="uri" <?php if ($this->type == 'uri') { echo 'selected="selected"'; } ?>>uri</option>
		</select>
	</li>
</ul>
<div>
	<input type="hidden" name="old_s" value="<?php echo $this->s; ?>"/>
	<input type="hidden" name="old_p" value="<?php echo $this->p; ?>"/>
	<input type="hidden" name="old_o" value="<?php echo $this->o; ?>"/>
	<input type="hidden" name="old_type" value="<?php echo $this->type; ?>"/>
</div>

<input type="submit" value="Save"/>

</form>
